package com.chainwintel.prjmgmt.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.chainwintel.prjmgmt.model.MenuItem;
import com.chainwintel.prjmgmt.model.User;
import com.chainwintel.prjmgmt.repository.GenericRepository;

public interface MenuItemMgr extends GenericRepository<MenuItem> {
	
	MenuItem find(long id) throws DataAccessException;
	
	List<MenuItem> listMenus()  throws DataAccessException;
	
	List<MenuItem> listRootMenus() throws DataAccessException;

	void doAssign(User user, MenuItem menuItem)  throws DataAccessException;

	void doUnassign(User user, MenuItem menuItem) throws DataAccessException;

}
